-- GENERATED SPELL FOR [Kor'kron Infantry] --


function spell0_31832(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(29426,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31832', 542, 1)
end

function spell1_31832(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31832', 559, 1)
end

function Sorts_31832(pUnit, Event)
local choix_sorts_31832 = math.random(0, 1)
if choix_sorts_31832 == 0 then
pUnit:RegisterEvent('spell0_31832', 1, 1)
end
if choix_sorts_31832 == 1 then
pUnit:RegisterEvent('spell1_31832', 1, 1)
end
end

function mob31832_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31832', math.random(1500, 3000), 1)
end

function mob31832_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31832_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31832_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31832, 1, 'mob31832_Action')
RegisterUnitEvent(31832, 2, 'mob31832_Leave')
RegisterUnitEvent(31832, 3, 'mob31832_Kill')
RegisterUnitEvent(31832, 4, 'mob31832_Die')
